//
//  XJDCenterController.m
//  XJD
//
//  Created by Angela on 2017/8/25.
//  Copyright © 2017年 Angela. All rights reserved.
//

#import "XJDCenterController.h"
#import "MMDrawerBarButtonItem.h"
#import "UIViewController+MMDrawerController.h"
#import "XJDCenterFirstStoreyView.h"
@interface XJDCenterController ()<XJDCenterFirstStorey>
@property (nonatomic, strong) XJDCenterFirstStoreyView *firstStoreyView;
@end

@implementation XJDCenterController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title=@"选择金额";
    self.view.backgroundColor=[UIColor whiteColor];
    [self setupLeftMenuButton];
    [self creatView];
}
-(void)creatView{
    self.firstStoreyView=[[XJDCenterFirstStoreyView alloc]init];
    self.firstStoreyView.XJdDelegate=self;
    [self.view addSubview:self.firstStoreyView];
}
-(void)setupLeftMenuButton{
    MMDrawerBarButtonItem * leftDrawerButton = [[MMDrawerBarButtonItem alloc] initWithTarget:self action:@selector(leftDrawerButtonPress:)];
    [self.navigationItem setLeftBarButtonItem:leftDrawerButton animated:YES];
}
-(void)nextStepButtonClick:(UIButton *)btn{
    [[[XJDPopView alloc]init]showPopView:XJDCompleteInformation];
}
#pragma mark - Button Handlers
-(void)leftDrawerButtonPress:(id)sender{
    [self.mm_drawerController toggleDrawerSide:MMDrawerSideLeft animated:YES completion:nil];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}
@end
